﻿using Crm.Infrastructure.Dto.Response;
using CRM.Infrastructure.Attr;
using CRM.Infrastructure.Dto.Response;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Crm.Infrastructure.Dto.Request.Dictionary;
using Crm.Infrastructure.Dto.Response.Dictionary;
using CRM.Infrastructure.Dto.Request.Dictionary;

namespace Crm.Service.Interface
{

    [Provider_]
    public interface I_Dictionary_Service
    {
        Task<Api_Response_Dto> Add_Dictionary(Dictionary_Request_Dto dto);
        Task<Api_Response_Dto> Add_Dictionary_type(Dictionary_Request_Dto dto);
        Task<Api_Response_Dto> Delete_Dictionarys(string id);

        /// <summary>
        /// 删除字典类别
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<Api_Response_Dto> Delete_Dictionary_Types(string id);

        /// <summary>
        /// 获取字典类别列表
        /// </summary>
        /// <param name="pgae"></param>
        /// <param name="limit"></param>
        /// <param name="key"></param>
        /// <returns></returns>
        Task<Api_Response_Dto> Get_Dictionaty_Types(int page = 1, int limit = 10, string key = "");
        Task<Api_Response_Dto> Get_Single_Dictionary_Type(string id);
        Task<Api_Response_Dto> Update_Dictionarys(Dictionary_Response_Dto dto);
    }
}
